﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PostSubmit
{
    public partial class Main : Form
    {
        public Main()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Form1 form1 = new Form1();
            form1.Show();
            UpperAndLower u = new UpperAndLower();
            u.Hide();

        }

        private void button2_Click(object sender, EventArgs e)
        {
            Form1 form1 = new Form1();
            form1.Hide();
            UpperAndLower u = new UpperAndLower();
            u.Show();
        }

        private void Main_SizeChanged(object sender, EventArgs e)
        {
            if (this.WindowState == FormWindowState.Minimized)
            {
                this.Hide();
                this.notifyIcon1.Visible = true;
            }
        }

        private void notifyIcon1_Click(object sender, EventArgs e)
        {
            this.Visible = true;
            this.WindowState = FormWindowState.Normal;
            this.notifyIcon1.Visible = false;
        }

        private void button3_Click(object sender, EventArgs e)
        {
            WebRequestTest webRequestTest = new WebRequestTest();
            webRequestTest.Show();
        }

        private void button4_Click(object sender, EventArgs e)
        {
            MD5T md5T = new MD5T();
            md5T.Show();
        }

        private void button5_Click(object sender, EventArgs e)
        {
            SetFiledEntity entity = new SetFiledEntity();
            entity.Show();
        }

        private void button6_Click(object sender, EventArgs e)
        {
            InsertOrder insertOrder = new InsertOrder();
            insertOrder.Show();
        }

        private void button7_Click(object sender, EventArgs e)
        {
            AutoLogin autoLogin = new AutoLogin();
            autoLogin.Show();
        }
    }
}
